package com.threadlocal;

public class OrderDao {
    public void saveOrder(){
        String name = Thread.currentThread().getName();
        //threadLocal.get():取出当前线程所关联的一个数据
        System.out.println("OrderDao 当前线程[" + name + "]中保存的数据是：" + ThreadLocalTest.threadLocal.get());
    }
}
